home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr48 / tsbat146.zip / LOCATE.BAT < prev    next >
DOS Batch File  |  1992-08-29  |  722b  |  30 lines

  1. echo off
  2. echo.
  3. echo ┌───────────────────────────────────────────────────┐
  4. echo │ Wildcard locate file names on a device            │
  5. echo │ By Prof. Timo Salmi, ts@uwasa.fi, Sat 29-Aug-1992 │
  6. echo └───────────────────────────────────────────────────┘
  7. rem Trick: below is echo + ascii 255
  8. echo  
  9.  
  10. if "%1"=="" goto _help
  11.  
  12. if "%2"=="/p" goto _more
  13. attrib %1 /s
  14. goto _out
  15.  
  16. :_more
  17. attrib %1 /s | more
  18. goto _out
  19.  
  20. :_help
  21. echo Usage: LOCATE [Device:\]FileSearchString [/p(age)]
  22. echo.
  23. echo Examples:
  24. echo LOCATE c:\tsbat.nws  finds all occurrences of tsbat.nws on C disk
  25. echo LOCATE d:\*.com      finds all .com files on D disk
  26. echo LOCATE e:\ts*.zip    finds all ts-packages on E disk
  27.  
  28. :_out
  29. echo on
  30.